//
// Created by caedmon on 2017/12/13 0013.
//

#include <stdio.h>

void getMaxValueIndex(int arr[], int arrLength){
    int resultIndex;
    int maxValue = arr[0];
    for(int i = 0; i < arrLength; i++){
        if(maxValue < arr[i]){
            maxValue = arr[i];
            resultIndex = i;
        }
    }
    printf("the max value's index is : %d\n", resultIndex);
}